package club.zhcs.cms.bean.cms;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.ColType;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Table;

import com.kerbores.utils.db.data.Entity;

/**
 * 
 * @author Kerbores(kerbores@gmail.com)
 *
 * @project cms
 *
 * @file Material.java
 *
 * @description 产品资料
 *
 * @copyright 内部代码,禁止转发
 *
 * @time 2016年5月12日 下午12:54:14
 *
 */
@Table("t_material")
@Comment("产品资料")
public class Material extends Entity {

	@Column("m_product_id")
	@Comment("产品id")
	private int productId;

	@Column("m_name")
	@Comment("资料名称")
	@ColDefine(width = 200)
	private String name;

	@Column("m_desc")
	@Comment("资料描述/概要")
	@ColDefine(width = 21845, type = ColType.TEXT)
	private String desctiption;

	@Column("m_english_name")
	@Comment("资料英文名称")
	@ColDefine(width = 200)
	private String englishName;

	@Column("m_english_desc")
	@Comment("资料英文描述/概要")
	@ColDefine(width = 21845, type = ColType.TEXT)
	private String englishDesctiption;

	@Column("m_image_key")
	@Comment("资料图片")
	private String imageKey;

	@Column("m_file_key")
	@Comment("资料文件")
	private String fileKey;

	@Column("m_english_file_key")
	@Comment("资料英文文件")
	private String englishFileKey;

	@Column("m_publicity")
	@Comment("资料公开标识")
	private boolean publicity = false;

	@Column("m_type")
	@Comment("资料类型")
	private MeterialType type = MeterialType.SAMPLE;

	/**
	 * @return the publicity
	 */
	public boolean isPublicity() {
		return publicity;
	}

	/**
	 * @param publicity
	 *            the publicity to set
	 */
	public void setPublicity(boolean publicity) {
		this.publicity = publicity;
	}

	/**
	 * @return the productId
	 */
	public int getProductId() {
		return productId;
	}

	/**
	 * @param productId
	 *            the productId to set
	 */
	public void setProductId(int productId) {
		this.productId = productId;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the desctiption
	 */
	public String getDesctiption() {
		return desctiption;
	}

	/**
	 * @param desctiption
	 *            the desctiption to set
	 */
	public void setDesctiption(String desctiption) {
		this.desctiption = desctiption;
	}

	/**
	 * @return the englishName
	 */
	public String getEnglishName() {
		return englishName;
	}

	/**
	 * @param englishName
	 *            the englishName to set
	 */
	public void setEnglishName(String englishName) {
		this.englishName = englishName;
	}

	/**
	 * @return the englishDesctiption
	 */
	public String getEnglishDesctiption() {
		return englishDesctiption;
	}

	/**
	 * @param englishDesctiption
	 *            the englishDesctiption to set
	 */
	public void setEnglishDesctiption(String englishDesctiption) {
		this.englishDesctiption = englishDesctiption;
	}

	/**
	 * @return the imageKey
	 */
	public String getImageKey() {
		return imageKey;
	}

	/**
	 * @param imageKey
	 *            the imageKey to set
	 */
	public void setImageKey(String imageKey) {
		this.imageKey = imageKey;
	}

	/**
	 * @return the fileKey
	 */
	public String getFileKey() {
		return fileKey;
	}

	/**
	 * @param fileKey
	 *            the fileKey to set
	 */
	public void setFileKey(String fileKey) {
		this.fileKey = fileKey;
	}

	/**
	 * @return the englishFileKey
	 */
	public String getEnglishFileKey() {
		return englishFileKey;
	}

	/**
	 * @param englishFileKey
	 *            the englishFileKey to set
	 */
	public void setEnglishFileKey(String englishFileKey) {
		this.englishFileKey = englishFileKey;
	}

	/**
	 * @return the type
	 */
	public MeterialType getType() {
		return type;
	}

	/**
	 * @param type
	 *            the type to set
	 */
	public void setType(MeterialType type) {
		this.type = type;
	}

}
